package com.zmn.oms.services.impl.quotation3;

import com.zmn.oms.model.entity.quotation3.OrderQuotationServiceItem;
import com.zmn.oms.persistence.interfaces.quotation3.OrderQuotationServiceItemDao;
import com.zmn.oms.services.interfaces.quotation3.OrderQuotationServiceItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author sunlife
 * @date:2021/12/2 10:26 下午
 * description:
 */
@Service
public class OrderQuotationServiceItemServiceImpl implements OrderQuotationServiceItemService {
    @Autowired
    OrderQuotationServiceItemDao orderQuotationServiceItemDao;

    @Override
    public void batchInsert(List<OrderQuotationServiceItem> serviceItemList) {
        orderQuotationServiceItemDao.batchInsert(serviceItemList);
    }

    @Override
    public List<OrderQuotationServiceItem> listByOrderId(Long orderId) {
        return orderQuotationServiceItemDao.listByOrderId(orderId);
    }

    @Override
    public void deleteByOrderId(Long orderId) {
        orderQuotationServiceItemDao.deleteByOrderId(orderId);
    }
}
